package com.linkhub.oms.data.sync.job;

import com.linkhub.oms.data.sync.service.ShopifyDataSyncBizService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;

/**
 * @author Jaycle
 * @version 1.0.0
 * @description ShopifyShopShippingNameSyncJod
 * @date 2024/05/08日 20:08
 */
@Slf4j
@Component
public class ShopifyShopShippingNameSyncJod {
    @Resource
    private ShopifyDataSyncBizService shopifyDataSyncBizService;
    @Scheduled(cron = "1 0 * * * ?")
    public void shopifyShopProductSyncJob() {
        log.info("ShopifyShopShippingNameSyncJod start...");
        shopifyDataSyncBizService.syncAllShopShippingName();
        log.info("ShopifyShopShippingNameSyncJod end...");
    }
}
